<template>
  <div class="container">
    <div class="word">登录成功啦！</div>
    <div class="btn">
      <el-button class="btn1" @click="detail">查看个人信息</el-button>
      <el-button class="btn1" @click="home">返回首页</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: "MyLogin",
  methods: {
    detail() {
      this.$router.push("/detail");
    },
    home() {
      this.$router.push("/my-home");
    },
  },
};
</script>

<style lang="less" scoped>
.container {
  width: auto;
  height: auto;

  // background: #ebe9e9;

  .word {
    margin-top: 7em;
    text-align: center;
    font-size: 25px;
    color: green;
  }
  .btn {
    display: flex;
    justify-content: center;
    .btn1 {
      margin: 4em;
      width: 10em;
      background: rgba(206, 5, 5, 0.7);
      color: #f0eaea;
    }
    .btn1:hover {
      background: rgb(206, 5, 5);
      color: #f0eaea;
    }
    
  }
}
</style>